fixing unbound error