added method blocks and controller input