added getType function