taking care when users put empty data