started implementation of adding to time matrix