altering function coding style