filtering empty data from hash