contains the code of CASE