changed gpio output to correct value