resultset handling problem