fixed data allocation in constructor by copying size +1