sass rewritten in C