created function for get primary + secondary (mat)

-still need to rewrite unit-v but should be done for listing primary
mats