refactored require to be an array notation, slight code mods