added amount calculator method
reassigning original data-types