change intent to type