There are some verbs that change their meaning depending on whether they are followed by to + inf or -ing form.