hopefully final version for trials