handle empty and mine