continuing to work on implementing new likelihood function - memory issues