problems with allocation?