remove NoneType