TODO, added time inserting funs