dealt with some warnings; still not working though