fixing guard expression