small time optimization