fixing error informed by chrise86