if statement for supported units added