on and getValue methods