generalized parallax code and added factory bg