set tip differently based on element type