updated to martin's search skeleton

yay skeleton
closed variable