Chosen Solution
The car showed engine sign second time in the last couple of days. I went to my mechanic and he said the problem is in exhaust VANOS and the filters needs to be changed he said he will clean it if he could to save me some money he cleaned it and switched the filters, he put the exhaust one in the intake and the intake one in the exhaust. And then the check engine sign came back on and I went to him again he said the code is from the exhaust VANOS again the problem might be in the timing chain
there usually located on the rear of the engine on bmw, I know in the UK if its accessible without the engine being taken out it is about £700 on average for most cars and around £1,000 or anything that has to have the engine removed (so usually another 3rd of the cost more anywhere), the chain tensioners are renowned for failing in a lot of bmw’s though, have you check that first? and depending on the mileage if the engine does have to come out then maybe a clutch will be required too.