made functions independent from 'this'