optimize code and replace sample smilies' path