simplified the Ntime making function, removing the sub-function