changed the way to create times