updated run after fixing median selection implementation