attempted to fix code