Daniel bugfix spike

fixed case statement