added time, worked on backend