Fixed some compile errors. still doesnt work lool