more robustness against wrong input data