fixed some stupid mistakes, still doesn't work