got everything to work SJE and SJM are slow need to refactor