fixed compounds script