fixed a bug to previous commit, i don't know what i did differently this
time