added routines

added routines