name space method defined & some refactoring planned