Replaced [] with array() so the code is compatible with php 5.3