add if condition for Run