completed implementation of dynamic. Fixed bug with regards to recording
scalar.