added set prescalar function