updated stairs problem