The foam needs to be placed in front of the submersible pump to protect the pump when the flowing water run through.