set posmap for declare on assign for functions