tried making it dynamic

compiles, but does not currently work