cleaned up. removed timing print statements