checks on comments to avoid nullpointers