fixes to specify types instead of numbers.