setting a routine