second psudo code up