improve parallax and clean code