still not passing data correctly