fixing spacing for foreach