removed unneeded rights, fixed type