add beta calculation and step for projection