basic function working with specs