cleanup type stuff