fix incomplete code