check for capacity in accomodate method