moved the outline code to a module
fixed an alignment glitch