moved function location