change delegate method for recording, remove redundant code while calling delegate