remove instantiation of none_type as per @kkaefer's suggestion