make better pile behaviour