handle return value