condition added to controller