removed function array dereferencing for compatibility with php 5.3