needed to change time var into string