created inline functions