method name changed
refactored
uninitialixed error removed