changed the checking for a repeating module