corrected attribute functions