stack implementation replaced to not synchronized