function snippet format fix