easier to understand
refactoring code to avoid to duplicate