fix semantic issues with parameters