removed size checks, documentation