fixed dataset processing

previously `return` was called within a utility method, which is ineffective