added some formB code