using fig for building