spliting code segments.. adding another parameter on -like switch