splot code in dev