Refactored right now and added exception to get value in any side
Added exception to get value in any side