cleaning up function definition syntax