modifeied model for motor task to manage different trial