made more efficient

using push and join rather than .=