adds functioning method