On some maximum principles