removes synchronized from getSize method