adjusted to provided process and test case