timestamp method added for decreasing code complexity
helper methods added for preventing code duplication