streamlining the code
optimize performance