added method for getting value