almost done, but padding and time is not correct