added outlines code