added times utility function