applying masks anything != than input :)