fixed problem with new inline functions