new code for ninja-page