refactoring parallax engine.