working version with 256 FPB