this works the simulator dosnt