start adding dynamic field functionality
fix compilation error