better function syntax