binding main to block