still trying to fix encoding errors