explain what modules() returns and remove empty []