removes php 5.4 style arrays for backward compatibility