writing single array schedule