updated if statement to reflect arch and arm