solved incrementation bug