Update singularity.hpp