first implemtation of timeline -- buggy