remove grep function
fix wrong using subprocess
Fix predictive key