it works but now I'm using deprecated stuff