added exception to detect non integer input