Author: David Conyers copyright (c) 2004