extracted function execute
refactoring functions