removing sentinel values in modules