adding debug messages for timing