added dynamic memory options