fixed grep call