finally made autocommenting smarter