type not working