ugly code for H2+