adding decode option and search