significantly improved performance
added a comment for perfomance