start of script for testing seg using 3d dict from 2d dict