fix bug on timeframe variable and remove a not used file