added loop and fixed preload in multiword