got rid of php 5.4 errors
version 1