incostince method with map interface solved