logo logic added