moved function calls