changed coding style to make it consistent