moved function into place page