added console time/timeEnd for better debugging