use getpos() instead of line(), col()