added pure function attributes for gcc