types and removed commented out stuff from when allowed to set readonly props