updated code formating