changed timestamp from factor to POSIXct