updated code

format changes