solving bugs