updated simulate to return compdata