changing to dynamic