graph not working