lookup procedure