code for OLM case