changed return values to RC