resultset functions fixed