adapting to composer