refactor sentence structure array