implemented map fit and clear methods