fixing print_r in model.php