changing function syntax