performace inprovement

Signed-off-by: Thor Nahody <thor@nahody.com>