corrected some mistakes, still doesnt work