put timing commands in extra method