change get_timestamp to public method