minor bug with checking instanceof stairs