getCode eliminated from everywhere but model