working version.

fixed the GODDAMN PIECE OF SHIT FENCEPOST ERROR