working on bilayer builder