ocrrecting the return values