replaced echo with print_r