refactored compositions_jrag