modifed for Sophia from Hydrogen