trying to inline the function see if this helps?