fixing inline functions order