added before method to time