moved value method to public;