minor changes converted datatype to protected