refactored inlineList in  order to fix bug