logo logic updated