checking input singularity