old function call will be same but also can make a time formate