if677's code