missing check if code exists on data?