added default case in switch (whic will never happen) to prevent warnings