changed to inline