mantaPath implemented to consolidate repeated code blocks