added cursor return