mlp manipulation function added @Damwdan