corrected icon function