fixed basecode