fixes generics definition of Routine