made some changes per stack overflow suggestion

still wont compile.