add resource and fixed some ard coding by henry