use code instead of pic