check for null before ammendInput