prepareditval handle default case