improved appearance code