changed implementation of oos to the separated sample reaches