added the length finally and changed the end time so it corrisponds with...

... the server