optimize methods based on .map()