changed array declarations from [] to array() to be Php 5.3 compatible