added the latest routines