removed pattern attribute from skin lookup function