added option for uniform prior