implementation logic and map