Refactoring

completed ask-int function