creating a routine