changed function call to boolean