search non-in-template logic done