changed code formating