corrected so it checks on the right name