fixing inline functions