was trying to fix missing values problem, trying different solution
working version, tested#