changed the execute function that map calls