checking for None values