working on last time interval and screen