make function syntax consistent