changed time datatype to long