added cursor mode