simplified parallax algorithm