minimized and commented a code