implemented rest of sigma but haven't checked, yet.