modified getData function…still not working