removed obsolete pil functions