function tricks