all working adding 4th output