build up dictionary