generating pieced and floor