type instead of getClass