fixed paging problem
change array initializtion to array()