this i actually not part of the final commit. I removed the check because I am not sure if doing it every time costs more time than it saves...