changed refs for backwards compatibility (php < 5.3)