changed time implementation from object to string