added random controller