assignment in bar 2 error