updated consults if statement