extracting comment code
fixed cursor nonsense