corrected the passed variable