fixing errors, still not working