removing unecessary nulls