changed variable reference assignment to support php 5.6