make embedding size adjustable