changed timestamp to int