changed lignin func