re-factored the code. added parcel object