comment and optimize