protect in case first input is not defined (?)