works fine, still some bugs removed printing of time