added function to set architecure