very quick and dirty allocation