added space after for, changed if format