more changes to decode, modify metal and age max ranges