added default to the dectect version func