made small changes to speed up time