moved the getAbstract function upstream