fix coding problem