improved ear clip function