made changes to better fit fora style, should refactor and make it not suck for other's to use