updated wrapper fucntion and corrected lint errors