Optimization for compose