removed warning and corrected logs