added input sanatization