change the comparetime()