added time and frequency grid functions