first code
improved ignoring