added stack search first version