fix code slightlly