debugging but still not working