handle None value