pb 24 wip

works for 4 elem. Still have bugs.