added getType