corrected data passing