fixed stupid performance issue