lookup coded, not yet debugged nor tested