added no such property exception and renamed a parameter