switched type and id around