removing wrong code type